package cn.yjh.api.impl;

import javax.annotation.Resource;

import cn.yjh.annotation.RPCMapping;
import cn.yjh.annotation.RPCService;
import cn.yjh.api.ConfigurationService;
import cn.yjh.api.PluginService;


/**
 * @DESC:
 * @AUTHOR: YouJinhua
 * @DATE: 2021-12-05 16:54:29
 * @VERSION: 1.0
 */
@RPCService
public class PluginServiceImpl implements PluginService {

    @Resource(name = "testConfig")
    ConfigurationService configurationService;

    @RPCMapping("/delete")
    @Override
    public boolean deletePlugin() {
        try {
            Class<?> clazz = Class.forName("cn.yjh.ServletPlugin");
            System.out.println(clazz.getClass().getClassLoader());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

        return false;
    }
}
